import request from '@/utils/request'

// 查询项目情况列表
export function listDealSituation(query) {
  return request({
    url: '/anxin/dealSituation/list',
    method: 'get',
    params: query
  })
}

// 查询OA合同列表
export function listOaContractList(dealId) {
  return request({
    url: '/anxin/dealSituation/oaContractList/' + dealId,
    method: 'get'
  })
}

// 查询项目收款列表
export function listDealCollectionList(dealId, type) {
  return request({
    url: '/anxin/dealSituation/dealCollectionList/' + dealId + '/' + type,
    method: 'get'
  })
}

// 查询项目月度处理情况列表
export function listDealProcessingMonthInfoList(dealId) {
  return request({
    url: '/anxin/dealSituation/queryDealProcessingMonthInfo/' + dealId,
    method: 'get'
  })
}
// 查询项目处理月份列表
export function listDealProcessingMonthList(dealId) {
  return request({
    url: '/anxin/dealSituation/queryDealProcessingMonth/' + dealId,
    method: 'get'
  })
}

// 查询用户项目周报处理记录
export function listUserDealWeeklyReportRecordList(dealId, userId, month) {
  return request({
    url: '/anxin/dealSituation/queryUserDealWeeklyReportRecord',
    method: 'get',
    params: {
      dealId: dealId,
      userId: userId,
      month: month
    }
  })
}

// 更新人天成本
export function calculationDailyCost() {
  return request({
    url: '/anxin/dealSituation/calculationDailyCost',
    method: 'get'
  })
}

